package com.qys.livesMall.shop.modal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author gmx
 * @since 2023-06-23
 */
@Data
@TableName("h2_shop_order_return_approved")
@Schema(name = "ShopOrderReturnApproved", description = "")
public class
ShopOrderReturnApproved implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "退货sku_id")
    private Long orderSkuId;
    @Schema(description = "商家id")
    private Long shopId;
    @Schema(description = "退货人id")
    private Long returnUserId;
    @Schema(description = "退货人名字")
    private String returnUserName;
    @Schema(description = "1签收0未签收")
    private Integer sign;
    @Schema(description = "退货原因")
    private String idea;
    @Schema(description = "退货原因详情")
    private String description;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    @Schema(description = "0未取消1已取消")
    private String isDelete;
    @Deprecated
    @Schema(description = "0用户1商户3平台")
    private Integer processUser;
    @Schema(description = "1退货2换货3:退款")
    private Integer type;
    @Schema(description = "0:申请，1：确认，2：买家发货，3：平台收货，4：平台发货，5用户收货，6：完成（退款），-1：不通过")
    private Integer status;
    @Schema(description = "商品订单号")
    private String orderNo;
    @Schema(description = "订单号")
    private String orderNoMain;
}
